package cn.edu.scnu.semart.vo.user;

import cn.edu.scnu.semart.model.user.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(description = "用户查询实体")
public class UserQueryVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户Id")
    private Integer userId;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "用户类型(NORMAL-一般用户 ADMIN-管理员)",
            allowableValues = "NORMAL,ADMIN")
    private User.UserType userType;  // 使用实体类中的枚举类型

    @ApiModelProperty(value = "用户状态(ACTIVE-正常 BANNED-封禁)",
            allowableValues = "ACTIVE,BANNED")
    private User.UserStatus status;  // 使用实体类中的枚举类型

}
